﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Entity
{
    /// <summary>
    /// 返回结果实体
    /// </summary>
    [SugarTable("WCS_APILOG")]
    public class ApiLogs
    {
        public ApiLogs() { }

        public ApiLogs(string address, string requestContent, string responseResult)
        {
            Id = Guid.NewGuid().ToString();
            Address = address; ;
            RequestContent = requestContent;
            ResponseResult = responseResult;
            CreateTime = DateTime.Now;
        }
        
        /// <summary>
        /// 请求地址 
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 请求内容
        /// </summary>
        public string RequestContent { get; set; }

        /// <summary>
        /// 返回结果
        /// </summary>
        public string ResponseResult { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
